﻿using System;
using Myotragus.Data;
using Myotragus.Data.Containers;
using Myotragus.Data.Domain;
using Myotragus.Data.Metadata;

namespace Myotragus.Store.Model.Tests.Domain
{
  [Entity("Object", IdColumn="ObjectId", IdGenerator=IdGenerators.Native)]
  public interface IObject : IEntity<int>
  {
    string Name { get;set;}
    DateTime Created { get; set; }
    decimal Price { get; set; }
  }

  public interface IObjectRepository : IReadRepository<IObject>, IWriteRepository<IObject>
  {}

  public class ObjectRepository : Repository<IObject>, IObjectRepository
  {
    public ObjectRepository(IEntitiesContainer entities) : base(entities)
    {
    }
  }
}
